home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_12_05 / plauger / rdbuf.c < prev    next >
C/C++ Source or Header  |  1994-03-08  |  295b  |  16 lines

  1.  
  2. ----------- Listing 6: The function ios::rdbuf(streambuf *) -----------
  3.  
  4. // iosrdbuf -- ios::rdbuf(streambuf *)
  5. #include <ios>
  6.  
  7. streambuf *ios::rdbuf(streambuf *nb)
  8.     {    // set new streambuf
  9.     streambuf *ob = _Sb;
  10.     _Sb = nb;
  11.     clear(goodbit);
  12.     return (ob);
  13.     }
  14.  
  15.  
  16.